﻿using System;

namespace HslCommunication.Profinet.Omron
{
	/// <summary>
	/// 欧姆龙的Fins协议的数据类型
	/// </summary>
	// Token: 0x02000059 RID: 89
	public class OmronFinsDataType
	{
		/// <summary>
		/// 实例化一个Fins的数据类型
		/// </summary>
		/// <param name="bitCode">进行位操作的指令</param>
		/// <param name="wordCode">进行字操作的指令</param>
		// Token: 0x0600076A RID: 1898 RVA: 0x00027380 File Offset: 0x00025580
		public OmronFinsDataType(byte bitCode, byte wordCode)
		{
			this.BitCode = bitCode;
			this.WordCode = wordCode;
		}

		/// <summary>
		/// 进行位操作的指令
		/// </summary>
		// Token: 0x1700014F RID: 335
		// (get) Token: 0x0600076B RID: 1899 RVA: 0x0002739A File Offset: 0x0002559A
		// (set) Token: 0x0600076C RID: 1900 RVA: 0x000273A2 File Offset: 0x000255A2
		public byte BitCode { get; private set; }

		/// <summary>
		/// 进行字操作的指令
		/// </summary>
		// Token: 0x17000150 RID: 336
		// (get) Token: 0x0600076D RID: 1901 RVA: 0x000273AB File Offset: 0x000255AB
		// (set) Token: 0x0600076E RID: 1902 RVA: 0x000273B3 File Offset: 0x000255B3
		public byte WordCode { get; private set; }

		/// <summary>
		/// DM Area
		/// </summary>
		// Token: 0x040001D6 RID: 470
		public static readonly OmronFinsDataType DM = new OmronFinsDataType(2, 130);

		/// <summary>
		/// CIO Area
		/// </summary>
		// Token: 0x040001D7 RID: 471
		public static readonly OmronFinsDataType CIO = new OmronFinsDataType(48, 176);

		/// <summary>
		/// Work Area
		/// </summary>
		// Token: 0x040001D8 RID: 472
		public static readonly OmronFinsDataType WR = new OmronFinsDataType(49, 177);

		/// <summary>
		/// Holding Bit Area
		/// </summary>
		// Token: 0x040001D9 RID: 473
		public static readonly OmronFinsDataType HR = new OmronFinsDataType(50, 178);

		/// <summary>
		/// Auxiliary Bit Area
		/// </summary>
		// Token: 0x040001DA RID: 474
		public static readonly OmronFinsDataType AR = new OmronFinsDataType(51, 179);

		/// <summary>
		/// TIM Area
		/// </summary>
		// Token: 0x040001DB RID: 475
		public static readonly OmronFinsDataType TIM = new OmronFinsDataType(9, 137);
	}
}
